package file;

import java.io.File;

/**
 * Creared with IntelliJ IDEA.
 * Description:
 * User:yxd
 * Date:2022-04-05
 * Time:18:59
 */
public class Demo7 {
    public static void main(String[] args) {
        File f = new File("./aaa");
        File f1 = new File("./zzz");
        f.renameTo(f1);//改名字,将f的名字改成f1的内容
    }
}
